import request from '@/utils/request'

// 查询上课记录列表
export function listClassrecords(query) {
  return request({
    url: '/classrecords/classrecords/list',
    method: 'get',
    params: query
  })
}

// 查询上课记录详细
export function getClassrecords(id) {
  return request({
    url: '/classrecords/classrecords/' + id,
    method: 'get'
  })
}

// 新增上课记录
export function addClassrecords(data) {
  return request({
    url: '/classrecords/classrecords',
    method: 'post',
    data: data
  })
}

// 修改上课记录
export function updateClassrecords(data) {
  return request({
    url: '/classrecords/classrecords',
    method: 'put',
    data: data
  })
}

// 删除上课记录
export function delClassrecords(id) {
  return request({
    url: '/classrecords/classrecords/' + id,
    method: 'delete'
  })
}
